file = open('a.txt','w',encoding='utf-8')
# file.write("第一个测试文件")
for i in range(10):
    file.write(f"这是第{i}行\n")
file.close()